07. Matrix Multiplication - General
So far we only concentrated on square matrix multiplications. However, we are not limited to square matrices alone.
Lets look again at our image that represents the multiplication x :
Remember, the order here does matter, as matrix multiplication is not commutative

If you look closely at the image that represents the multiplication of x , you will see that the number columns in equals the number of rows in . (In the case of our example, it was ).
How many rows do we have in matrix ? How many columns do we have in matrix ? That will deretmine the dimensions of the resulting multiplication.
In other words, if is a matrix with dimensions x and is a matrix with dimensions x then:
x is possible as the dimensions match. ( has columns and has rows).
x will be a matrix of x. ( rows and columns).
Lets look at an example:
We would like to calculate x.
Our first step is to see if the calculation is possible. We will do that by looking at the dimensions of the matrices.
Matrix has columns and matrix has rows. Perfect! multiplication is possible.
We expect to have a final result x with the dimensions x ( rows and columns).
x=
Equation 16